<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Kame
 * Date: 7/04/13
 * Time: 05:25 PM
 */

namespace Site\Model;


class PointType {
    public $tipo;
    public $nombrecorto;
    public $descripcion;
    public $icono;
    

    public function exchangeArray($data){
        $this->tipo  = (isset($data['tipo']))  ? $data['tipo']  : null;
        $this->nombrecorto     = (isset($data['nombrecorto'])   )  ? $data['nombrecorto']     : null;
        $this->descripcion     = (isset($data['descripcion']))     ? $data['descripcion']     : null;
        $this->icono = (isset($data['icono'])) ? $data['icono'] : null;
    }

    public function toArray(){
        return array(
            'tipo' => $this->tipo,
            'nombrecorto' => $this->nombrecorto,
            'descripcion' => $this->descripcion,
            'icono' => $this->icono,
        );
    }
}